def parse_attributes!
      self.attributes = (attributes || []).map do |key_value|
        name, type, index, default = key_value.split(/:/)
        opts = {}
        if default
          opts[:default] = default
        end
        if index
          index_type, constraint = index.split(/,/)
          if constraint == 'not_null'
            opts[:null] = false
          end
        end
        create_attribute(name, type, index_type, opts)
      end
    end
def parse_attributes!
      self.attributes = (attributes || []).map do |key_value|
        name, type, index, default = key_value.split(/:/)
        opts = {}
        if default
          opts[:default] = default
        end
        if index
          index_type, constraint = index.split(/,/)
          if constraint == 'not_null'
            opts[:null] = false
          end
        end
        create_attribute(name, type, index_type, opts)
      end
    end
override Rails::Generators::NamedBase#parse_attributes! to customize attribute parsing